package com.fire.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2024-03-27
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="MachineQueryDto对象")
public class MachineQueryDto implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    @ApiModelProperty(value = "机器唯一编号")
    @NotBlank(message = "机器唯一编号属性不能为空")
    private String machineId;

    @ApiModelProperty(value = "制造商")
    @NotBlank(message = "机器制造商属性不能为空")
    private String manufacturer;

    @ApiModelProperty(value = "部署位置")
    @NotBlank(message = "机器部署具体位置不能为空")
    private String location;

    @ApiModelProperty(value = "代办任务数量")
    private Integer waitTask;

    @ApiModelProperty(value = "机器状态：0：停用；1：激活；2：维护")
    @NotBlank(message = "机器制状态属性不能为空")
    private String status;

    @ApiModelProperty(value = "机器投入工作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private LocalDateTime createTime;
}
